package vip.xiaonuo.column.modular.column.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 栏区视图
 * @author
 * @date 2023/12/26、11:40
 */
@Getter
@Setter
@TableName("column_view")
public class ColumnView {
    /** 栏区id */
    @TableId
    @ApiModelProperty(value = "栏区id", position = 1)
    private String id;

    /* 栏区名 */
    @ApiModelProperty(value = "栏区名", position = 2)
    private String name;

    /** 栏区标志 */
    @ApiModelProperty(value = "栏区标志", position = 3)
    private String sign;

    /** 栏区种类 */
    @ApiModelProperty(value = "栏区种类", position = 4)
    private String typeId;

    /** 父栏舍id */
    @ApiModelProperty(value = "父栏舍id", position = 5)
    private String barnId;

    /** 父栏舍名 */
    @ApiModelProperty(value = "父栏舍名", position = 6)
    private String barnName;

    /** 栏区状态 */
    @ApiModelProperty(value = "栏区状态", position = 7)
    private String state;

    /** 栏区容量 */
    @ApiModelProperty(value = "栏区容量", position = 8)
    private Integer capacity;

    /** 栏区容量 */
    @ApiModelProperty(value = "栏区剩余容量", position = 9)
    private Integer remainingCapacity;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 10)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 11)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
